Fix default target of motion events
authorPo Lu <luangruo@yahoo.com>
Tue, 9 Nov 2021 07:24:45 +0000 (08:24 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Tue, 9 Nov 2021 07:24:45 +0000 (08:24 +0100)
* src/xwidget.c (xwidget_motion_or_crossing): Default to widget_osr
instead of its window (bug#51703).

src/xwidget.c

index 90178f441d13c87071c54857b72d4c2b535b8e4e..d3a8d5eb82b50c0912ca8862270efd8660c7c14b 100644 (file)
@@ -763,7 +763,7 @@ xwidget_motion_or_crossing (struct xwidget_view *view, const XEvent *event)
                                          &x, &y);
 
   if (!target)
-    target = model->widgetwindow_osr;
+    target = model->widget_osr;
 
   xg_event->any.window = gtk_widget_get_window (target);
   g_object_ref (xg_event->any.window); /* The window will be unrefed